package com.steven.design.Builder_Pattern.factory.abstractFactory;

import com.steven.design.Builder_Pattern.factory.Fruit;

public class User {
    public static void main(String[] args) {
        IFactory apple = new AppleFactory();
        IFactory pear = new PearFactory();
        Fruit fruit = apple.create();
        fruit.eat();
        Fruit fruit2 = pear.create();
        fruit2.eat();
    }
}
